import store from '../store';

/**
 * 选择到右侧的方法
 * @param { Array } entities 为添加到右侧的数据数组
 * @param { Array } notIncludeSubDept 为不包含子部门的部门数组
 */
const selectDataToRight = (entities, notIncludeSubDept) => {
	console.log('selectDataToRight===>', entities, notIncludeSubDept);
	return store.dispatch('selectData/ACTION_TOGGLE_ENTITY', {
		entities,
		notIncludeSubDept
	});
};

export default { selectDataToRight };
